﻿using System;
using System.Collections.Generic;

namespace ConfigManager.Core
{
    public class DefaultProperties
    {
        /// <summary>
        /// Loads the default properties.
        /// </summary>
        /// <param name="properties">The properties collection.</param>
        public static void Load(IDictionary<string, string> properties)
        {
       


            properties.Add("Environment.CurrentDirectory", Environment.CurrentDirectory);
            properties.Add("Environment.MachineName", Environment.MachineName);
            properties.Add("Environment.OSVersion", Environment.OSVersion.VersionString);
            properties.Add("Environment.SystemDirectory", Environment.SystemDirectory);
            properties.Add("Environment.UserDomainName", Environment.UserDomainName);
            properties.Add("Environment.UserName", Environment.UserName);

            foreach (string key in Environment.GetEnvironmentVariables().Keys)
                properties.Add("Environment.Variable." + key, Environment.GetEnvironmentVariables()[key].ToString());
        }
    }
}
